package com.sree.tali.pojo;

import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

public class UploadImagePojo
  extends ActionForm
{
  private String folderName;
  private String subfolderName;
  private String directoryname;
  private FormFile image;
  private List<FormFile> imageList = new ArrayList();
  private List<String> folders = new ArrayList();
  private List<String> subFolders = new ArrayList();
  
  public List<String> getSubFolders()
  {
    return this.subFolders;
  }
  
  public void setSubFolders(List<String> subFolders)
  {
    this.subFolders = subFolders;
  }
  
  public String getFolderName()
  {
    return this.folderName;
  }
  
  public void setFolderName(String folderName)
  {
    this.folderName = folderName;
  }
  
  public String getSubfolderName()
  {
    return this.subfolderName;
  }
  
  public void setSubfolderName(String subfolderName)
  {
    this.subfolderName = subfolderName;
  }
  
  public String getDirectoryname()
  {
    return this.directoryname;
  }
  
  public void setDirectoryname(String directoryname)
  {
    this.directoryname = directoryname;
  }
  
  public FormFile getImage()
  {
    return this.image;
  }
  
  public void setImage(FormFile image)
  {
    this.image = image;
    setImageList(image);
  }
  
  public List<FormFile> getImageList()
  {
    return this.imageList;
  }
  
  public void setImageList(FormFile image)
  {
    this.imageList.add(image);
  }
  
  public List<String> getFolders()
  {
    return this.folders;
  }
  
  public void setFolders(List<String> folders)
  {
    this.folders = folders;
  }
  
  public void reset(ActionMapping mapping, HttpServletRequest request)
  {
    this.imageList = new ArrayList();
  }
}
